package com.example.teststarter.controller;

import com.example.teststarter.service.FunctionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/functionController")
@RestController
public class FunctionController {
    @Autowired
    private FunctionService functionService;

    @RequestMapping("/doFunctionByType")
    public String doFunctionByType(String type, String value, Integer num) {
        return functionService.getFunctionResult(type, value, num);
    }
}
